﻿using System;

namespace BSharp.Compiler.Emit
{
	public class Symbol
	{
		static int nextUniqueSymbol = 0;

		public readonly string Name;

		public Symbol ()
		{
			Name = String.Format ("___symbol{0}___", nextUniqueSymbol++);
		}

		public Symbol (string name)
		{
			Name = name;
		}

		public SymbolReference CreateReference ()
		{
			return new SymbolReference (Name);
		}
	}
}

